package com.desire;

import com.desire.mapper.BookMapper;
import com.desire.mapper.DbMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootVersion;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author LittleDesire
 * @description
 * @date 2022-04-11 周一 22:05
 * @since 17
 */
@SpringBootApplication
public class App implements ApplicationRunner {
    @Autowired
    BookMapper bm;
    @Autowired
    DbMapper dm;
    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
    }

    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println(dm.version());
        System.out.println("hello world");
        System.out.println(bm.queryAll());
        System.out.println(SpringBootVersion.getVersion());
    }
}
